#app {
    .main-container {
      min-height: 100%;
      transition: margin-left 0.28s;
      margin-left: $sideBarWidth;
      position: relative;
    }
    .sidebar-container {
      transition: width 0.28s;
      width: $sideBarWidth !important;
      background-color: #284358;
      height: 100%;
      position: fixed;
      font-size: 0px;
      top: 0;
      bottom: 0;
      left: 0;
      z-index: 1001;
      overflow: hidden;
  
      // reset element-ui css
      .horizontal-collapse-transition {
        transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
      }
  
      .scrollbar-wrapper {
        overflow-x: hidden !important;
      }
  
      .el-scrollbar__bar.is-vertical {
        right: 0px;
      }
  
      .el-scrollbar {
        height: 100%;
      }
  
      &.has-logo {
        .el-scrollbar {
          height: calc(100% - 50px - 90px);
        }
      }
  
      .is-horizontal {
        display: none;
      }
  
      a {
        display: inline-block;
        width: 100%;
        overflow: hidden;
        background-color: #284358;
      }
  
      .svg-icon {
        margin-right: 16px;
      }
  
      .el-menu {
        border: none;
        height: 100%;
        width: 100% !important;
      }
  
      .el-menu-item {
        height: 45px;
        line-height: 45px;
        font-size: 14px;
      }
      .el-submenu__title {
        height: 45px;
        line-height: 45px;
        font-size: 14px;
      }
      .nest-menu .el-menu-item .svg-icon {
        margin-left: 15px;
      }
  
      // menu hover
      .submenu-title-noDropdown {
        font-size: 14px;
        &:hover {
          background-color: $menuBg !important;
          color: #fff !important;
        }
        &.is-active {
          &:hover {
            background-color: #f2f2f2 !important;
            color: $baseColor !important;
          }
        }
      }
  
      .el-submenu__title {
        &:hover {
          background-color: $menuBg !important;
          color: #fff !important;
        }
      }
  
      .el-submenu__title i {
        color: #fff;
      }
      .is-active {
          background-color: #f2f2f2 !important;
          color: $baseColor !important;
      }
      .is-active > .el-submenu__title {
        color: $subMenuActiveText !important;
      }
  
      & .nest-menu .el-submenu > .el-submenu__title,
      & .el-submenu .el-menu-item {
        min-width: $sideBarWidth !important;
        background-color: $subMenuBg;
  
        &:hover {
          background-color: $menuBg !important;
          color: #fff !important;
          
          &.is-active {
            background-color: #f2f2f2 !important;
            color: $baseColor !important;
          }
        }
      }
    }
  
    .el-footer {
      font-size: 8px;
      color: #fff;
      line-height: 30px;
      padding: 0px;
      text-align: center;
      transform: scale(0.8);
      position: absolute;
      width: 200px;
      left: -14px;
      bottom: 0px;
    }
    .el-submenu {
      background-color: #284358;
    }
  
    .el-menu-item-title {
      width: 100%;
      background-color: #284358;
      padding-top: 2px;
      .el-submenu__title {
        margin-top: 0px;
      }
    }
  
    .hideSidebar {
      .sidebar-container {
        width: 54px !important;
      }
  
      .sidebar-logo {
        height: 26px;
        vertical-align: middle;
        margin-top: 12px;
      }
  
      .sidebar-logo-line-badge {
        display: none;
      }
  
      .main-container {
        margin-left: 54px;
      }
  
      .submenu-title-noDropdown {
        padding: 0 !important;
        position: relative;
  
        .el-tooltip {
          padding: 0 !important;
  
          .svg-icon {
            margin-left: 20px;
          }
        }
      }
  
      .el-submenu {
        overflow: hidden;
  
        & > .el-submenu__title {
          padding: 0 !important;
  
          .svg-icon {
            margin-left: 20px;
          }
  
          .el-submenu__icon-arrow {
            display: none;
          }
        }
      }
  
      .el-menu--collapse {
        .el-submenu {
          & > .el-submenu__title {
            & > span {
              height: 0;
              width: 0;
              overflow: hidden;
              visibility: hidden;
              display: inline-block;
            }
          }
        }
      }
    }
  
    .el-menu--collapse .el-menu .el-submenu {
      min-width: $sideBarWidth !important;
    }
  
    // mobile responsive
    .mobile {
      .main-container {
        margin-left: 0px;
      }
  
      .sidebar-container {
        transition: transform 0.28s;
        width: $sideBarWidth !important;
      }
  
      &.hideSidebar {
        .sidebar-container {
          pointer-events: none;
          transition-duration: 0.3s;
          transform: translate3d(-$sideBarWidth, 0, 0);
        }
      }
    }
  
    .withoutAnimation {
      .main-container,
      .sidebar-container {
        transition: none;
      }
    }
  }
  
  // when menu collapsed
  .el-menu--vertical {
    & > .el-menu {
      .svg-icon {
        margin-right: 16px;
      }
    }
  
    .nest-menu .el-submenu > .el-submenu__title,
    .el-menu-item {
      &:hover {
        // you can use $subMenuHover
        background-color: $zlactiveText !important;
        color: #fff !important;
      }
    }
    
  .nest-menu {
      .el-menu-item {
          &:hover {
              background-color: $menuBg !important;
          }
      }
  }
  .nest-menu .el-menu-item.is-active {
      background-color: #fff !important;
      color: $baseColor !important;
  }
  .el-menu--collapse .el-menu .el-submenu, .el-menu--popup {
      min-width: 170px;
  }
  
    // the scroll bar appears when the subMenu is too long
    > .el-menu--popup {
      max-height: 100vh;
      overflow-y: auto;
  
      &::-webkit-scrollbar-track-piece {
        background: #d3dce6;
      }
  
      &::-webkit-scrollbar {
        width: 6px;
      }
  
      &::-webkit-scrollbar-thumb {
        background: #99a9bf;
        border-radius: 20px;
      }
    }
  }
  